]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: switches
authorJakub Steiner <jimmac@gmail.com>
Wed, 8 Oct 2014 14:14:15 +0000 (16:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 14:14:41 +0000 (15:14 +0100)
data/theme/_common.scss
data/theme/_gnome-shell-old.scss
data/theme/gnome-shell.css

index 7128b3a67a86ce87315c88b3556abd79db9b9a9e..747e1cf9b55bc3161046eae7fc602827c8e2c752 100644 (file)
@@ -131,6 +131,19 @@ StScrollBar {
   &:focus:checked Stbin { background-image: url("checkbox-focused.svg"); }
 }
 
+/* Switches */
+.toggle-switch {
+    width: 65px;
+    height: 22px;
+    background-size: contain;
+}
+
+  @each $v in us, intl {
+    .toggle-switch-#{$v} {
+      background-image: url("toggle-off-#{$v}.svg");    
+      &:checked { background-image: url("toggle-on-#{$v}.svg"); }
+    }
+  }
 
 /* links */
 .shell-link {
index cc364b75a4731b3c2b95ba197a0b8170b4191d75..d3d2904f6bac2a36195bca2a71b4338d78cf782d 100644 (file)
  */
 
 
-/* Switches */
-.toggle-switch {
-    width: 65px;
-    height: 22px;
-}
-
-.toggle-switch-us {
-    background-image: url("toggle-off-us.svg");
-    background-size: contain;
-}
-.toggle-switch-us:checked {
-    background-image: url("toggle-on-us.svg");
-    background-size: contain;
-}
-
-.toggle-switch-intl {
-    background-image: url("toggle-off-intl.svg");
-    background-size: contain;
-}
-.toggle-switch-intl:checked {
-    background-image: url("toggle-on-intl.svg");
-    background-size: contain;
-}
-
 /* Network */
 
 .nm-dialog {
index cd41215b94340dd138e243c9679e1b8059faf4f6..d860288f7baceb6d1b0448888adce5aaabf64c2c 100644 (file)
  * along with this program; if not, write to the Free Software Foundation,
  * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  */
-/* Switches */
-.toggle-switch {
-  width: 65px;
-  height: 22px; }
-
-.toggle-switch-us {
-  background-image: url("toggle-off-us.svg");
-  background-size: contain; }
-
-.toggle-switch-us:checked {
-  background-image: url("toggle-on-us.svg");
-  background-size: contain; }
-
-.toggle-switch-intl {
-  background-image: url("toggle-off-intl.svg");
-  background-size: contain; }
-
-.toggle-switch-intl:checked {
-  background-image: url("toggle-on-intl.svg");
-  background-size: contain; }
-
 /* Network */
 .nm-dialog {
   max-height: 500px;
@@ -1907,6 +1886,22 @@ StScrollBar {
 .check-box:focus:checked Stbin {
   background-image: url("checkbox-focused.svg"); }
 
+/* Switches */
+.toggle-switch {
+  width: 65px;
+  height: 22px;
+  background-size: contain; }
+
+.toggle-switch-us {
+  background-image: url("toggle-off-us.svg"); }
+  .toggle-switch-us:checked {
+    background-image: url("toggle-on-us.svg"); }
+
+.toggle-switch-intl {
+  background-image: url("toggle-off-intl.svg"); }
+  .toggle-switch-intl:checked {
+    background-image: url("toggle-on-intl.svg"); }
+
 /* links */
 .shell-link {
   color: #4a90d9; }